package 外观模式.代理外观模式;

public class Proxy implements Subject {
    private RealSubject realSubject;

    public Proxy(RealSubject realSubject) {
        this.realSubject = realSubject;
    }

    @Override
    public void request() {
        System.out.println("代理主题执行请求前的操作");
        realSubject.request();
        System.out.println("代理主题执行请求后的操作");
    }
}